package com.develop.data.loan.manager.change.amount.api;

import com.develop.data.loan.model.LoanInstallment;

import javax.money.MonetaryAmount;
import java.time.LocalDateTime;

public interface LoanInstallmentAmountBudget {
    /*
    * preview
    * execute
    * */
    public default MonetaryAmount preview(LoanInstallment loanInstallment, LocalDateTime localDate){
        //动帐期次
        //动帐日
        //只预览不变更
        return null;
    }

    public default MonetaryAmount execute(LoanInstallment loanInstallment, LocalDateTime localDate, MonetaryAmount amount){

        //动帐期次
        //动帐日
        //还款金额
        //变更期次金额
        return null;
    }

}
